package com.duoec.magichour.pojo;

import java.util.Date;

public class Authorize {
    /**
     * token
     * @demo sadlfkjaosdfhawkelfn
     */
    private String id;

    /**
     * 用户ID
     * @demo 435
     */
    private Long userId;

    /**
     * 过期时间
     * @demo 2017-07-01 12:23:34
     */
    private Date expired;

    /**
     * 授权类型：0手机号码-密码 1微信 2微博 3QQ 4手机号码-动态密码
     * @demo 0
     */
    private Byte authFrom;

    /**
     * 用户角色
     */
    private String roles;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getExpired() {
        return expired;
    }

    public void setExpired(Date expired) {
        this.expired = expired;
    }

    public Byte getAuthFrom() {
        return authFrom;
    }

    public void setAuthFrom(Byte authFrom) {
        this.authFrom = authFrom;
    }

    public String getRoles() {
        return roles;
    }

    public void setRoles(String roles) {
        this.roles = roles;
    }
}